3.7.10 \(\int \frac {(a+b x+c x^2)^{3/2}}{(d+e x) (f+g x)^2} \, dx\)

Optimal. Leaf size=787 \[ \frac {\sqrt {a+b x+c x^2} \left (-2 c e (5 b d-4 a e)+b^2 e^2-2 c e x (2 c d-b e)+8 c^2 d^2\right )}{8 c e (e f-d g)^2}-\frac {e \sqrt {a+b x+c x^2} \left (-2 c g (5 b f-4 a g)+b^2 g^2-2 c g x (2 c f-b g)+8 c^2 f^2\right )}{8 c g^2 (e f-d g)^2}-\frac {3 \left (-4 c g (2 b f-a g)+b^2 g^2+8 c^2 f^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 \sqrt {c} g^3 (e f-d g)}-\frac {(2 c d-b e) \left (-4 c e (2 b d-3 a e)-b^2 e^2+8 c^2 d^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} e^2 (e f-d g)^2}+\frac {e (2 c f-b g) \left (-4 c g (2 b f-3 a g)-b^2 g^2+8 c^2 f^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} g^3 (e f-d g)^2}+\frac {\left (a e^2-b d e+c d^2\right )^{3/2} \tanh ^{-1}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{e^2 (e f-d g)^2}-\frac {e \left (a g^2-b f g+c f^2\right )^{3/2} \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{g^3 (e f-d g)^2}+\frac {3 (2 c f-b g) \sqrt {a g^2-b f g+c f^2} \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{2 g^3 (e f-d g)}+\frac {3 \sqrt {a+b x+c x^2} (-3 b g+4 c f-2 c g x)}{4 g^2 (e f-d g)}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(f+g x) (e f-d g)} \]

________________________________________________________________________________________

Rubi [A]  time = 1.38, antiderivative size = 787, normalized size of antiderivative = 1.00, number of steps used = 23, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {960, 734, 814, 843, 621, 206, 724, 732} \begin {gather*} \frac {\sqrt {a+b x+c x^2} \left (-2 c e (5 b d-4 a e)+b^2 e^2-2 c e x (2 c d-b e)+8 c^2 d^2\right )}{8 c e (e f-d g)^2}-\frac {(2 c d-b e) \left (-4 c e (2 b d-3 a e)-b^2 e^2+8 c^2 d^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} e^2 (e f-d g)^2}-\frac {e \sqrt {a+b x+c x^2} \left (-2 c g (5 b f-4 a g)+b^2 g^2-2 c g x (2 c f-b g)+8 c^2 f^2\right )}{8 c g^2 (e f-d g)^2}+\frac {e (2 c f-b g) \left (-4 c g (2 b f-3 a g)-b^2 g^2+8 c^2 f^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} g^3 (e f-d g)^2}-\frac {3 \left (-4 c g (2 b f-a g)+b^2 g^2+8 c^2 f^2\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 \sqrt {c} g^3 (e f-d g)}+\frac {\left (a e^2-b d e+c d^2\right )^{3/2} \tanh ^{-1}\left (\frac {-2 a e+x (2 c d-b e)+b d}{2 \sqrt {a+b x+c x^2} \sqrt {a e^2-b d e+c d^2}}\right )}{e^2 (e f-d g)^2}-\frac {e \left (a g^2-b f g+c f^2\right )^{3/2} \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{g^3 (e f-d g)^2}+\frac {3 (2 c f-b g) \sqrt {a g^2-b f g+c f^2} \tanh ^{-1}\left (\frac {-2 a g+x (2 c f-b g)+b f}{2 \sqrt {a+b x+c x^2} \sqrt {a g^2-b f g+c f^2}}\right )}{2 g^3 (e f-d g)}+\frac {3 \sqrt {a+b x+c x^2} (-3 b g+4 c f-2 c g x)}{4 g^2 (e f-d g)}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(f+g x) (e f-d g)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x + c*x^2)^(3/2)/((d + e*x)*(f + g*x)^2),x]

[Out]

((8*c^2*d^2 + b^2*e^2 - 2*c*e*(5*b*d - 4*a*e) - 2*c*e*(2*c*d - b*e)*x)*Sqrt[a + b*x + c*x^2])/(8*c*e*(e*f - d*
g)^2) + (3*(4*c*f - 3*b*g - 2*c*g*x)*Sqrt[a + b*x + c*x^2])/(4*g^2*(e*f - d*g)) - (e*(8*c^2*f^2 + b^2*g^2 - 2*
c*g*(5*b*f - 4*a*g) - 2*c*g*(2*c*f - b*g)*x)*Sqrt[a + b*x + c*x^2])/(8*c*g^2*(e*f - d*g)^2) + (a + b*x + c*x^2
)^(3/2)/((e*f - d*g)*(f + g*x)) - ((2*c*d - b*e)*(8*c^2*d^2 - b^2*e^2 - 4*c*e*(2*b*d - 3*a*e))*ArcTanh[(b + 2*
c*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/(16*c^(3/2)*e^2*(e*f - d*g)^2) + (e*(2*c*f - b*g)*(8*c^2*f^2 - b^2*g^
2 - 4*c*g*(2*b*f - 3*a*g))*ArcTanh[(b + 2*c*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/(16*c^(3/2)*g^3*(e*f - d*g)
^2) - (3*(8*c^2*f^2 + b^2*g^2 - 4*c*g*(2*b*f - a*g))*ArcTanh[(b + 2*c*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/(
8*Sqrt[c]*g^3*(e*f - d*g)) + ((c*d^2 - b*d*e + a*e^2)^(3/2)*ArcTanh[(b*d - 2*a*e + (2*c*d - b*e)*x)/(2*Sqrt[c*
d^2 - b*d*e + a*e^2]*Sqrt[a + b*x + c*x^2])])/(e^2*(e*f - d*g)^2) + (3*(2*c*f - b*g)*Sqrt[c*f^2 - b*f*g + a*g^
2]*ArcTanh[(b*f - 2*a*g + (2*c*f - b*g)*x)/(2*Sqrt[c*f^2 - b*f*g + a*g^2]*Sqrt[a + b*x + c*x^2])])/(2*g^3*(e*f
 - d*g)) - (e*(c*f^2 - b*f*g + a*g^2)^(3/2)*ArcTanh[(b*f - 2*a*g + (2*c*f - b*g)*x)/(2*Sqrt[c*f^2 - b*f*g + a*
g^2]*Sqrt[a + b*x + c*x^2])])/(g^3*(e*f - d*g)^2)

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 621

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(4*c - x^2), x], x, (b + 2*c*x)
/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 724

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[-2, Subst[Int[1/(4*c*d
^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, (2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a,
b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[2*c*d - b*e, 0]

Rule 732

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*x + c*x^2)^p)/(e*(m + 1)), x] - Dist[p/(e*(m + 1)), Int[(d + e*x)^(m + 1)*(b + 2*c*x)*(a + b*x + c*x^2)^
(p - 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && NeQ
[2*c*d - b*e, 0] && GtQ[p, 0] && (IntegerQ[p] || LtQ[m, -1]) && NeQ[m, -1] &&  !ILtQ[m + 2*p + 1, 0] && IntQua
draticQ[a, b, c, d, e, m, p, x]

Rule 734

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*x + c*x^2)^p)/(e*(m + 2*p + 1)), x] - Dist[p/(e*(m + 2*p + 1)), Int[(d + e*x)^m*Simp[b*d - 2*a*e + (2*c*
d - b*e)*x, x]*(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ
[c*d^2 - b*d*e + a*e^2, 0] && NeQ[2*c*d - b*e, 0] && GtQ[p, 0] && NeQ[m + 2*p + 1, 0] && ( !RationalQ[m] || Lt
Q[m, 1]) &&  !ILtQ[m + 2*p, 0] && IntQuadraticQ[a, b, c, d, e, m, p, x]

Rule 814

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Sim
p[((d + e*x)^(m + 1)*(c*e*f*(m + 2*p + 2) - g*(c*d + 2*c*d*p - b*e*p) + g*c*e*(m + 2*p + 1)*x)*(a + b*x + c*x^
2)^p)/(c*e^2*(m + 2*p + 1)*(m + 2*p + 2)), x] - Dist[p/(c*e^2*(m + 2*p + 1)*(m + 2*p + 2)), Int[(d + e*x)^m*(a
 + b*x + c*x^2)^(p - 1)*Simp[c*e*f*(b*d - 2*a*e)*(m + 2*p + 2) + g*(a*e*(b*e - 2*c*d*m + b*e*m) + b*d*(b*e*p -
 c*d - 2*c*d*p)) + (c*e*f*(2*c*d - b*e)*(m + 2*p + 2) + g*(b^2*e^2*(p + m + 1) - 2*c^2*d^2*(1 + 2*p) - c*e*(b*
d*(m - 2*p) + 2*a*e*(m + 2*p + 1))))*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && NeQ[b^2 - 4*a*c, 0
] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && GtQ[p, 0] && (IntegerQ[p] ||  !RationalQ[m] || (GeQ[m, -1] && LtQ[m, 0])
) &&  !ILtQ[m + 2*p, 0] && (IntegerQ[m] || IntegerQ[p] || IntegersQ[2*m, 2*p])

Rule 843

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dis
t[g/e, Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p, x], x] + Dist[(e*f - d*g)/e, Int[(d + e*x)^m*(a + b*x + c*x^
2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0]
&&  !IGtQ[m, 0]

Rule 960

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :
> Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] &
& NeQ[e*f - d*g, 0] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && (IntegerQ[p] || (ILtQ[m, 0] &&
ILtQ[n, 0])) &&  !(IGtQ[m, 0] || IGtQ[n, 0])

Rubi steps

\begin {align*} \int \frac {\left (a+b x+c x^2\right )^{3/2}}{(d+e x) (f+g x)^2} \, dx &=\int \left (\frac {e^2 \left (a+b x+c x^2\right )^{3/2}}{(e f-d g)^2 (d+e x)}-\frac {g \left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)^2}-\frac {e g \left (a+b x+c x^2\right )^{3/2}}{(e f-d g)^2 (f+g x)}\right ) \, dx\\ &=\frac {e^2 \int \frac {\left (a+b x+c x^2\right )^{3/2}}{d+e x} \, dx}{(e f-d g)^2}-\frac {(e g) \int \frac {\left (a+b x+c x^2\right )^{3/2}}{f+g x} \, dx}{(e f-d g)^2}-\frac {g \int \frac {\left (a+b x+c x^2\right )^{3/2}}{(f+g x)^2} \, dx}{e f-d g}\\ &=\frac {\left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)}-\frac {e \int \frac {(b d-2 a e+(2 c d-b e) x) \sqrt {a+b x+c x^2}}{d+e x} \, dx}{2 (e f-d g)^2}+\frac {e \int \frac {(b f-2 a g+(2 c f-b g) x) \sqrt {a+b x+c x^2}}{f+g x} \, dx}{2 (e f-d g)^2}-\frac {3 \int \frac {(b+2 c x) \sqrt {a+b x+c x^2}}{f+g x} \, dx}{2 (e f-d g)}\\ &=\frac {\left (8 c^2 d^2+b^2 e^2-2 c e (5 b d-4 a e)-2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{8 c e (e f-d g)^2}+\frac {3 (4 c f-3 b g-2 c g x) \sqrt {a+b x+c x^2}}{4 g^2 (e f-d g)}-\frac {e \left (8 c^2 f^2+b^2 g^2-2 c g (5 b f-4 a g)-2 c g (2 c f-b g) x\right ) \sqrt {a+b x+c x^2}}{8 c g^2 (e f-d g)^2}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)}+\frac {\int \frac {\frac {1}{2} \left (4 c e (b d-2 a e)^2-d (2 c d-b e) \left (4 b c d-b^2 e-4 a c e\right )\right )-\frac {1}{2} (2 c d-b e) \left (8 c^2 d^2-b^2 e^2-4 c e (2 b d-3 a e)\right ) x}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{8 c e (e f-d g)^2}-\frac {e \int \frac {\frac {1}{2} \left (4 c g (b f-2 a g)^2-f (2 c f-b g) \left (4 b c f-b^2 g-4 a c g\right )\right )-\frac {1}{2} (2 c f-b g) \left (8 c^2 f^2-b^2 g^2-4 c g (2 b f-3 a g)\right ) x}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{8 c g^2 (e f-d g)^2}+\frac {3 \int \frac {c \left (3 b^2 f g+4 a c f g-4 b \left (c f^2+a g^2\right )\right )-c \left (8 c^2 f^2+b^2 g^2-4 c g (2 b f-a g)\right ) x}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{8 c g^2 (e f-d g)}\\ &=\frac {\left (8 c^2 d^2+b^2 e^2-2 c e (5 b d-4 a e)-2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{8 c e (e f-d g)^2}+\frac {3 (4 c f-3 b g-2 c g x) \sqrt {a+b x+c x^2}}{4 g^2 (e f-d g)}-\frac {e \left (8 c^2 f^2+b^2 g^2-2 c g (5 b f-4 a g)-2 c g (2 c f-b g) x\right ) \sqrt {a+b x+c x^2}}{8 c g^2 (e f-d g)^2}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)}+\frac {\left (c d^2-b d e+a e^2\right )^2 \int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx}{e^2 (e f-d g)^2}-\frac {\left ((2 c d-b e) \left (8 c^2 d^2-b^2 e^2-4 c e (2 b d-3 a e)\right )\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{16 c e^2 (e f-d g)^2}+\frac {\left (3 (2 c f-b g) \left (c f^2-b f g+a g^2\right )\right ) \int \frac {1}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{2 g^3 (e f-d g)}-\frac {\left (e \left (c f^2-b f g+a g^2\right )^2\right ) \int \frac {1}{(f+g x) \sqrt {a+b x+c x^2}} \, dx}{g^3 (e f-d g)^2}+\frac {\left (e (2 c f-b g) \left (8 c^2 f^2-b^2 g^2-4 c g (2 b f-3 a g)\right )\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{16 c g^3 (e f-d g)^2}-\frac {\left (3 \left (8 c^2 f^2+b^2 g^2-4 c g (2 b f-a g)\right )\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{8 g^3 (e f-d g)}\\ &=\frac {\left (8 c^2 d^2+b^2 e^2-2 c e (5 b d-4 a e)-2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{8 c e (e f-d g)^2}+\frac {3 (4 c f-3 b g-2 c g x) \sqrt {a+b x+c x^2}}{4 g^2 (e f-d g)}-\frac {e \left (8 c^2 f^2+b^2 g^2-2 c g (5 b f-4 a g)-2 c g (2 c f-b g) x\right ) \sqrt {a+b x+c x^2}}{8 c g^2 (e f-d g)^2}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)}-\frac {\left (2 \left (c d^2-b d e+a e^2\right )^2\right ) \operatorname {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x}{\sqrt {a+b x+c x^2}}\right )}{e^2 (e f-d g)^2}-\frac {\left ((2 c d-b e) \left (8 c^2 d^2-b^2 e^2-4 c e (2 b d-3 a e)\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{8 c e^2 (e f-d g)^2}-\frac {\left (3 (2 c f-b g) \left (c f^2-b f g+a g^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac {-b f+2 a g-(2 c f-b g) x}{\sqrt {a+b x+c x^2}}\right )}{g^3 (e f-d g)}+\frac {\left (2 e \left (c f^2-b f g+a g^2\right )^2\right ) \operatorname {Subst}\left (\int \frac {1}{4 c f^2-4 b f g+4 a g^2-x^2} \, dx,x,\frac {-b f+2 a g-(2 c f-b g) x}{\sqrt {a+b x+c x^2}}\right )}{g^3 (e f-d g)^2}+\frac {\left (e (2 c f-b g) \left (8 c^2 f^2-b^2 g^2-4 c g (2 b f-3 a g)\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{8 c g^3 (e f-d g)^2}-\frac {\left (3 \left (8 c^2 f^2+b^2 g^2-4 c g (2 b f-a g)\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{4 g^3 (e f-d g)}\\ &=\frac {\left (8 c^2 d^2+b^2 e^2-2 c e (5 b d-4 a e)-2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{8 c e (e f-d g)^2}+\frac {3 (4 c f-3 b g-2 c g x) \sqrt {a+b x+c x^2}}{4 g^2 (e f-d g)}-\frac {e \left (8 c^2 f^2+b^2 g^2-2 c g (5 b f-4 a g)-2 c g (2 c f-b g) x\right ) \sqrt {a+b x+c x^2}}{8 c g^2 (e f-d g)^2}+\frac {\left (a+b x+c x^2\right )^{3/2}}{(e f-d g) (f+g x)}-\frac {(2 c d-b e) \left (8 c^2 d^2-b^2 e^2-4 c e (2 b d-3 a e)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} e^2 (e f-d g)^2}+\frac {e (2 c f-b g) \left (8 c^2 f^2-b^2 g^2-4 c g (2 b f-3 a g)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{16 c^{3/2} g^3 (e f-d g)^2}-\frac {3 \left (8 c^2 f^2+b^2 g^2-4 c g (2 b f-a g)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 \sqrt {c} g^3 (e f-d g)}+\frac {\left (c d^2-b d e+a e^2\right )^{3/2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x+c x^2}}\right )}{e^2 (e f-d g)^2}+\frac {3 (2 c f-b g) \sqrt {c f^2-b f g+a g^2} \tanh ^{-1}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{2 g^3 (e f-d g)}-\frac {e \left (c f^2-b f g+a g^2\right )^{3/2} \tanh ^{-1}\left (\frac {b f-2 a g+(2 c f-b g) x}{2 \sqrt {c f^2-b f g+a g^2} \sqrt {a+b x+c x^2}}\right )}{g^3 (e f-d g)^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 1.40, size = 357, normalized size = 0.45 \begin {gather*} \frac {-2 g^3 (f+g x) \left (e (a e-b d)+c d^2\right )^{3/2} \tanh ^{-1}\left (\frac {2 a e-b d+b e x-2 c d x}{2 \sqrt {a+x (b+c x)} \sqrt {e (a e-b d)+c d^2}}\right )+e \left (2 g \sqrt {a+x (b+c x)} (d g-e f) (e g (b f-a g)+c d g (f+g x)-c e f (2 f+g x))-e (f+g x) \sqrt {g (a g-b f)+c f^2} (g (-2 a e g+3 b d g-b e f)+2 c f (2 e f-3 d g)) \tanh ^{-1}\left (\frac {2 a g-b f+b g x-2 c f x}{2 \sqrt {a+x (b+c x)} \sqrt {g (a g-b f)+c f^2}}\right )\right )-\sqrt {c} (f+g x) (e f-d g)^2 \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+x (b+c x)}}\right ) (-3 b e g+2 c d g+4 c e f)}{2 e^2 g^3 (f+g x) (e f-d g)^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x + c*x^2)^(3/2)/((d + e*x)*(f + g*x)^2),x]

[Out]

(-(Sqrt[c]*(e*f - d*g)^2*(4*c*e*f + 2*c*d*g - 3*b*e*g)*(f + g*x)*ArcTanh[(b + 2*c*x)/(2*Sqrt[c]*Sqrt[a + x*(b
+ c*x)])]) - 2*(c*d^2 + e*(-(b*d) + a*e))^(3/2)*g^3*(f + g*x)*ArcTanh[(-(b*d) + 2*a*e - 2*c*d*x + b*e*x)/(2*Sq
rt[c*d^2 + e*(-(b*d) + a*e)]*Sqrt[a + x*(b + c*x)])] + e*(2*g*(-(e*f) + d*g)*Sqrt[a + x*(b + c*x)]*(e*g*(b*f -
 a*g) + c*d*g*(f + g*x) - c*e*f*(2*f + g*x)) - e*Sqrt[c*f^2 + g*(-(b*f) + a*g)]*(2*c*f*(2*e*f - 3*d*g) + g*(-(
b*e*f) + 3*b*d*g - 2*a*e*g))*(f + g*x)*ArcTanh[(-(b*f) + 2*a*g - 2*c*f*x + b*g*x)/(2*Sqrt[c*f^2 + g*(-(b*f) +
a*g)]*Sqrt[a + x*(b + c*x)])]))/(2*e^2*g^3*(e*f - d*g)^2*(f + g*x))

________________________________________________________________________________________

IntegrateAlgebraic [B]  time = 149.46, size = 3744, normalized size = 4.76 \begin {gather*} \text {Result too large to show} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(a + b*x + c*x^2)^(3/2)/((d + e*x)*(f + g*x)^2),x]

[Out]

(Sqrt[a + b*x + c*x^2]*(-32*b^2*e*f^4*g + 32*a*b*e*f^3*g^2 - 48*b^2*e*f^3*g^2*x + 48*a*b*e*f^2*g^3*x - 24*b^2*
e*f^2*g^3*x^2 + 24*a*b*e*f*g^4*x^2 - 4*b^2*e*f*g^4*x^3 + 4*a*b*e*g^5*x^3) + c*Sqrt[a + b*x + c*x^2]*(112*b*e*f
^5 - 16*b*d*f^4*g - 64*a*e*f^4*g + 184*b*e*f^4*g*x - 40*b*d*f^3*g^2*x - 96*a*e*f^3*g^2*x + 108*b*e*f^3*g^2*x^2
 - 36*b*d*f^2*g^3*x^2 - 48*a*e*f^2*g^3*x^2 + 26*b*e*f^2*g^3*x^3 - 14*b*d*f*g^4*x^3 - 8*a*e*f*g^4*x^3 + 2*b*e*f
*g^4*x^4 - 2*b*d*g^5*x^4) + Sqrt[c]*(-24*b^2*e*f^5 - 8*b^2*d*f^4*g + 96*a*b*e*f^4*g - 64*a^2*e*f^3*g^2 + 4*b^2
*e*f^4*g*x - 20*b^2*d*f^3*g^2*x + 112*a*b*e*f^3*g^2*x - 96*a^2*e*f^2*g^3*x + 42*b^2*e*f^3*g^2*x^2 - 18*b^2*d*f
^2*g^3*x^2 + 24*a*b*e*f^2*g^3*x^2 - 48*a^2*e*f*g^4*x^2 + 27*b^2*e*f^2*g^3*x^3 - 7*b^2*d*f*g^4*x^3 - 12*a*b*e*f
*g^4*x^3 - 8*a^2*e*g^5*x^3 + 5*b^2*e*f*g^4*x^4 - b^2*d*g^5*x^4 - 4*a*b*e*g^5*x^4) + c^2*Sqrt[a + b*x + c*x^2]*
(64*e*f^5*x - 32*d*f^4*g*x + 128*e*f^4*g*x^2 - 80*d*f^3*g^2*x^2 + 96*e*f^3*g^2*x^3 - 72*d*f^2*g^3*x^3 + 28*e*f
^2*g^3*x^4 - 28*d*f*g^4*x^4 + 4*e*f*g^4*x^5 - 4*d*g^5*x^5) + c^(3/2)*(-128*a*e*f^5 + 64*a*d*f^4*g - 144*b*e*f^
5*x + 32*b*d*f^4*g*x - 192*a*e*f^4*g*x + 160*a*d*f^3*g^2*x - 248*b*e*f^4*g*x^2 + 80*b*d*f^3*g^2*x^2 - 96*a*e*f
^3*g^2*x^2 + 144*a*d*f^2*g^3*x^2 - 156*b*e*f^3*g^2*x^3 + 72*b*d*f^2*g^3*x^3 - 16*a*e*f^2*g^3*x^3 + 56*a*d*f*g^
4*x^3 - 40*b*e*f^2*g^3*x^4 + 28*b*d*f*g^4*x^4 + 8*a*d*g^5*x^4 - 4*b*e*f*g^4*x^5 + 4*b*d*g^5*x^5) + c^(5/2)*(-6
4*e*f^5*x^2 + 32*d*f^4*g*x^2 - 128*e*f^4*g*x^3 + 80*d*f^3*g^2*x^3 - 96*e*f^3*g^2*x^4 + 72*d*f^2*g^3*x^4 - 28*e
*f^2*g^3*x^5 + 28*d*f*g^4*x^5 - 4*e*f*g^4*x^6 + 4*d*g^5*x^6))/(4*b*e*g^2*(e*f - d*g)*(f + g*x)*(2*f + g*x)^3 +
 8*c*e*g^2*(e*f - d*g)*x*(f + g*x)*(2*f + g*x)^3 - 8*Sqrt[c]*e*g^2*(e*f - d*g)*(f + g*x)*(2*f + g*x)^3*Sqrt[a
+ b*x + c*x^2]) + ((4*a*c*d^2)/(Sqrt[-(c*d^2) + b*d*e - a*e^2]*(e*f - d*g)^2) - (4*b*c*d^3)/(e*Sqrt[-(c*d^2) +
 b*d*e - a*e^2]*(e*f - d*g)^2))*ArcTan[(-(Sqrt[c]*d) - Sqrt[c]*e*x + e*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*d^2) +
b*d*e - a*e^2]] - (2*c^2*d^4*ArcTan[(Sqrt[c]*d)/Sqrt[-(c*d^2) + b*d*e - a*e^2] + (Sqrt[c]*e*x)/Sqrt[-(c*d^2) +
 b*d*e - a*e^2] - (e*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*d^2) + b*d*e - a*e^2]])/(e^2*Sqrt[-(c*d^2) + b*d*e - a*e^
2]*(e*f - d*g)^2) - (2*(b*d - a*e)^2*ArcTan[(Sqrt[c]*d)/Sqrt[-(c*d^2) + b*d*e - a*e^2] + (Sqrt[c]*e*x)/Sqrt[-(
c*d^2) + b*d*e - a*e^2] - (e*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*d^2) + b*d*e - a*e^2]])/(Sqrt[-(c*d^2) + b*d*e -
a*e^2]*(e*f - d*g)^2) + ((-2*b*c*e*f^3)/(g^2*(e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) + (4*b*c*d*f^2)/(g*
(e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) - (2*a*c*e*f^2)/(g*(e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2])
)*ArcTan[(-(Sqrt[c]*f) - Sqrt[c]*g*x + g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*g - a*g^2]] + ((-8*a*c*d*f
)/((e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) - (6*b*c*e*f^3)/(g^2*(e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*
g^2]) + (8*b*c*d*f^2)/(g*(e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) + (6*a*c*e*f^2)/(g*(e*f - d*g)^2*Sqrt[-
(c*f^2) + b*f*g - a*g^2]))*ArcTan[(-(Sqrt[c]*f) - Sqrt[c]*g*x + g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*g
 - a*g^2]] + ((-4*b^2*d*f)/((e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) + (2*b^2*e*f^2)/(g*(e*f - d*g)^2*Sqr
t[-(c*f^2) + b*f*g - a*g^2]) + (4*a*b*d*g)/((e*f - d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]) - (2*a^2*e*g)/((e*f
- d*g)^2*Sqrt[-(c*f^2) + b*f*g - a*g^2]))*ArcTan[(-(Sqrt[c]*f) - Sqrt[c]*g*x + g*Sqrt[a + b*x + c*x^2])/Sqrt[-
(c*f^2) + b*f*g - a*g^2]] + ((a*b)/((e*f - d*g)*Sqrt[-(c*f^2) + b*f*g - a*g^2]) - (b^2*f)/(g*(e*f - d*g)*Sqrt[
-(c*f^2) + b*f*g - a*g^2]))*ArcTan[(-(Sqrt[c]*f) - Sqrt[c]*g*x + g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*
g - a*g^2]] + ((-2*b*c*f^2)/(g^2*(-(e*f) + d*g)*Sqrt[-(c*f^2) + b*f*g - a*g^2]) + (2*a*c*f)/(g*(-(e*f) + d*g)*
Sqrt[-(c*f^2) + b*f*g - a*g^2]))*ArcTan[(-(Sqrt[c]*f) - Sqrt[c]*g*x + g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) +
 b*f*g - a*g^2]] - (4*c^2*e*f^4*ArcTan[(Sqrt[c]*f)/Sqrt[-(c*f^2) + b*f*g - a*g^2] + (Sqrt[c]*g*x)/Sqrt[-(c*f^2
) + b*f*g - a*g^2] - (g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*g - a*g^2]])/(g^3*(e*f - d*g)^2*Sqrt[-(c*f^
2) + b*f*g - a*g^2]) + (6*c^2*d*f^3*ArcTan[(Sqrt[c]*f)/Sqrt[-(c*f^2) + b*f*g - a*g^2] + (Sqrt[c]*g*x)/Sqrt[-(c
*f^2) + b*f*g - a*g^2] - (g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*g - a*g^2]])/(g^2*(e*f - d*g)^2*Sqrt[-(
c*f^2) + b*f*g - a*g^2]) + (b*c*f^2*ArcTan[(Sqrt[c]*f)/Sqrt[-(c*f^2) + b*f*g - a*g^2] + (Sqrt[c]*g*x)/Sqrt[-(c
*f^2) + b*f*g - a*g^2] - (g*Sqrt[a + b*x + c*x^2])/Sqrt[-(c*f^2) + b*f*g - a*g^2]])/(g^2*(-(e*f) + d*g)*Sqrt[-
(c*f^2) + b*f*g - a*g^2]) - (3*b*Sqrt[c]*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(2*e*g^2) + ((-8*c^
(3/2)*f^5)/(g^3*(-(e*f) + d*g)) - (4*c^(3/2)*f^4*x)/(g^2*(-(e*f) + d*g)) - (4*c^(3/2)*d*f^3*x)/(e*g*(-(e*f) +
d*g)) - (6*c^(3/2)*d*f^2*x^2)/(e*(-(e*f) + d*g)) + (2*c^(3/2)*f^3*x^2)/(g*(-(e*f) + d*g)) + (3*c^(3/2)*f^2*x^3
)/(-(e*f) + d*g) - (3*c^(3/2)*d*f*g*x^3)/(e*(-(e*f) + d*g)) + (c^(3/2)*f*g*x^4)/(2*(-(e*f) + d*g)) - (c^(3/2)*
d*g^2*x^4)/(2*e*(-(e*f) + d*g)) - (16*c^(3/2)*f^5*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(g^3*(-(e*
f) + d*g)) + (8*c^(3/2)*d*f^4*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(e*g^2*(-(e*f) + d*g)) + (8*c^
(3/2)*d^2*f^3*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(e^2*g*(-(e*f) + d*g)) + (12*c^(3/2)*d^2*f^2*x
*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(e^2*(-(e*f) + d*g)) - (24*c^(3/2)*f^4*x*Log[b + 2*c*x - 2*
Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(g^2*(-(e*f) + d*g)) + (12*c^(3/2)*d*f^3*x*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a +
b*x + c*x^2]])/(e*g*(-(e*f) + d*g)) + (6*c^(3/2)*d*f^2*x^2*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(
e*(-(e*f) + d*g)) - (12*c^(3/2)*f^3*x^2*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(g*(-(e*f) + d*g)) +
 (6*c^(3/2)*d^2*f*g*x^2*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(e^2*(-(e*f) + d*g)) - (2*c^(3/2)*f^
2*x^3*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(-(e*f) + d*g) + (c^(3/2)*d*f*g*x^3*Log[b + 2*c*x - 2*
Sqrt[c]*Sqrt[a + b*x + c*x^2]])/(e*(-(e*f) + d*g)) + (c^(3/2)*d^2*g^2*x^3*Log[b + 2*c*x - 2*Sqrt[c]*Sqrt[a + b
*x + c*x^2]])/(e^2*(-(e*f) + d*g)))/(2*f + g*x)^3

________________________________________________________________________________________

fricas [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)^(3/2)/(e*x+d)/(g*x+f)^2,x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

giac [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)^(3/2)/(e*x+d)/(g*x+f)^2,x, algorithm="giac")

[Out]

Timed out

________________________________________________________________________________________

maple [B]  time = 0.02, size = 7959, normalized size = 10.11 \begin {gather*} \text {output too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+b*x+a)^(3/2)/(e*x+d)/(g*x+f)^2,x)

[Out]

result too large to display

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (c x^{2} + b x + a\right )}^{\frac {3}{2}}}{{\left (e x + d\right )} {\left (g x + f\right )}^{2}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x+a)^(3/2)/(e*x+d)/(g*x+f)^2,x, algorithm="maxima")

[Out]

integrate((c*x^2 + b*x + a)^(3/2)/((e*x + d)*(g*x + f)^2), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c\,x^2+b\,x+a\right )}^{3/2}}{{\left (f+g\,x\right )}^2\,\left (d+e\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x + c*x^2)^(3/2)/((f + g*x)^2*(d + e*x)),x)

[Out]

int((a + b*x + c*x^2)^(3/2)/((f + g*x)^2*(d + e*x)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x + c x^{2}\right )^{\frac {3}{2}}}{\left (d + e x\right ) \left (f + g x\right )^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+b*x+a)**(3/2)/(e*x+d)/(g*x+f)**2,x)

[Out]

Integral((a + b*x + c*x**2)**(3/2)/((d + e*x)*(f + g*x)**2), x)

________________________________________________________________________________________